#if !defined(AFX_FUNCTIONCONFDLG_H__690D4A46_8C77_4B0B_97F5_5CF102AFB7D7__INCLUDED_)
#define AFX_FUNCTIONCONFDLG_H__690D4A46_8C77_4B0B_97F5_5CF102AFB7D7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FunctionConfDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CFunctionConfDlg dialog

class CFunctionConfDlg : public CDialog
{
// Construction
public:
	CFunctionConfDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CFunctionConfDlg)
	enum { IDD = IDD_FUNCTION_CONF_DLG };
	CListCtrl	m_listFunction;
	int		m_functionID;
	CString	m_functionName;
	CString	m_functionBody;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFunctionConfDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
private:
	_variant_t m_vfunctionID,m_vfunctionName,m_vfunctionBody;
	_RecordsetPtr m_pRecordset;
	
	BOOL m_bSuccess;
	int m_nCurrentSel;
	
	int CheckValid();
	void SetBtnState();
	void LoadData();
	void SaveData();
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CFunctionConfDlg)
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnModify();
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnItemchangedListFunction(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FUNCTIONCONFDLG_H__690D4A46_8C77_4B0B_97F5_5CF102AFB7D7__INCLUDED_)
